USE [ORSDATABASE]
GO

/****** Object:  Table [dbo].[tb_userlist]    Script Date: 09/03/2011 15:23:09 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[tb_userlist](
	[userid] [nchar](12) NOT NULL,
	[cname] [nchar](12) NULL,
	[gender] [nchar](10) NULL,
	[birthdate] [datetime] NULL,
	[department] [char](20) NULL,
	[regdate] [datetime] NULL,
	[logindate] [datetime] NULL,
	[phonenum] [nchar](25) NULL,
	[mobilenum] [nchar](25) NULL,
	[email] [nvarchar](50) NULL,
	[identitycard] [nchar](18) NULL,
	[roleid] [int] NULL,
	[interestid] [int] NULL,
	[password] [nchar](12) NULL,
	[validflag] [bit] NOT NULL,
 CONSTRAINT [PK_tb_userlist] PRIMARY KEY CLUSTERED 
(
	[userid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[tb_userlist] ADD  CONSTRAINT [DF_tb_userlist_validflag]  DEFAULT ((0)) FOR [validflag]
GO

